package com.technology.education.widget

import android.view.View
import com.technology.education.R
import com.zhpan.bannerview.BaseBannerAdapter

/**
 *@author:create by BZY
 *Date: 2020/6/30 14
 */

class PreviewPhotosAdapter : BaseBannerAdapter<String, PreviewPhotosViewHolder>() {
    override fun getLayoutId(viewType: Int): Int = R.layout.item_preview_photos
    override fun createViewHolder(itemView: View, viewType: Int): PreviewPhotosViewHolder {
        return PreviewPhotosViewHolder(itemView)
    }

    override fun onBind(
        holder: PreviewPhotosViewHolder?,
        data: String?,
        position: Int,
        pageSize: Int
    ) {
        holder?.bindData(data, position, pageSize)
    }

}